package yunjiao.javatutorials.apache.kafka.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;

/**
 * 业务消息类
 *
 * @author yangyunjiao
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class OrderCreatedEvent extends BaseMessage {
    private String orderId;
    private String userId;
    private BigDecimal amount;
    private List<OrderItem> items;
}
